<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>


<f:subview id="login">

  <rich:modalPanel id="panelLoging" width="300" height="200" onshow="document.getElementById('inicio:login:loginSenha:compoLogin').focus();" showWhenRendered="#{mbeanUsuarioSessao.fechar}" >
        <f:facet name="header">
            <h:panelGroup>
                <h:outputText value="Entre com seu login"></h:outputText>
            </h:panelGroup>
        </f:facet>

	
	<h:form id="loginSenha">	
		<h:panelGrid columns="2" style="text-align: center;" >
			 <h:outputText value="*Login"/>
			<h:inputText value="#{mbeanUsuarioSessao.usuario.login}" id="compoLogin" />

			<h:outputText value="*Senha" />
			<h:inputSecret value="#{mbeanUsuarioSessao.usuario.senha}"/>	
				<a4j:commandButton actionListener="#{mbeanUsuarioSessao.doEntrar}" type="submit" id="btaoLogin" reRender="scroller, panelLoging, menuUserNome, loginSenha, panelPers,semLogar, tabelaUserAtual" value="Entrar"/>
				
		</h:panelGrid>
		
     

		<h:panelGrid columns="1" width="100%" style="text-align: center;">
		<h:commandLink onclick="Richfaces.showModalPanel('panelRecSenha'); Richfaces.hideModalPanel('panelLoging');return false;">
					<h:outputText value="Esqueci minha senha" />
		</h:commandLink>
		<h:commandButton value="Cancelar" onclick="Richfaces.hideModalPanel('panelLoging');return false;" />
	
    </h:panelGrid>
</h:form>

		
    </rich:modalPanel>
</f:subview >